<?php
/**
 * MBcart controller file
 * 
 * This is considered the controller file for this MBCart
 * component.
 *
 * @todo Maybe use this as a dispatcher and controllers in other files?
 *
 * @author Wee Keat Chin <weekeat@miro.com.au>
 * @package com_mbcart
 **/


//Security - to ensure that this file is not called directly
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

//Basic settings
$task	= mosGetParam( $_REQUEST, "task", "" );
$now 	= date( 'Y-m-d H:i:s', time() + $mosConfig_offset * 60 * 60 );


//Switch tasks accordingly
switch($task)
{
	case "browse":
		browse();
	break;
	
	default:
		browse();
	break;
}

function browse() {
	echo 'Welcome to MBCart';
}

?>
